package com.example.architectlearning;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.architectlearning.databinding.ActivityMainBinding;

/**
 * @Author ninetailedfox
 * @Data 2022/6/3 5:25 下午
 * @ClassName MainActivity
 **/
public class MainActivity extends AppCompatActivity {


    ActivityMainBinding mainBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mainBinding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(mainBinding.getRoot());

        Bean bean = new Bean("闫峰",20);
        mainBinding.setBean(bean);

    }

}
